package exam.HWRealTopics;

import java.util.Arrays;
import java.util.Scanner;

/**
 * 项目名称：wangxu
 * 类 名 称：RealTopic022
 * 描 述：022卡片组成最大数
 * 创建时间：2023/2/24 4:09 下午
 * 创 建 人：wang-xu
 */
public class RealTopic022 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.next();
        String[] strNum = str.split(",");
        int[] nums = numArrays(strNum);
        Arrays.sort(nums);
        StringBuilder sb = new StringBuilder();
        for (int i= nums.length-1;i>=0;i--) {
            sb.append(nums[i]);
        }
        System.out.println(sb);

    }

    private static int[] numArrays(String[] strNum){
        int[] nums = new int[strNum.length];
        for (int i = 0; i < strNum.length; i++) {
            nums[i] = Integer.parseInt(strNum[i]);
        }
        return nums;
    }
}
